﻿


using Ku.AppCore.Events;

namespace Ku.Modules.Tool.Views
{

    public partial class ClearBinObj
    {
        private readonly IEventAggregator _eventAggregator;
        public ClearBinObj(IEventAggregator eventAggregator)
        {
            InitializeComponent();
            _eventAggregator = eventAggregator;
            _eventAggregator.GetEvent<MessageSentEvent>().Subscribe(AppendMessage);
        }

        private void AppendMessage(string message)
        {
            messageBox.AppendMessage(message);
        }
    }
}
